from django import forms
from models import Dish

class DishForm(forms.ModelForm):
    class Meta:
        model = Dish

class DishReviewForm(forms.Form):
    rating = forms.DecimalField()
    text = forms.CharField(widget=forms.Textarea(attrs={'size' : '50'}))
    img = forms.ImageField(required=False)

#class UploadImageForm(forms.Form):
#    img = forms.ImageField()